package com.maxie.factory.method.store.impl;

import com.maxie.factory.method.store.PizzaStore;
import com.maxie.factory.method.entity.CNPizza;
import com.maxie.factory.method.entity.Pizza;
import com.maxie.factory.method.entity.USAPizza;

public class WuhanPizzaStore extends PizzaStore {
    @Override
    public Pizza createPizza(String type) {

        if (type == "cn") {
            return new CNPizza();
        } else if (type == "usa") {
            return new USAPizza();
        }
        return null;
    }
}
